package com.naze32.configurator.designerscripts;
import anywheresoftware.b4a.objects.TextViewWrapper;
import anywheresoftware.b4a.objects.ImageViewWrapper;
import anywheresoftware.b4a.BA;


public class LS_main_main{

public static void LS_general(java.util.HashMap<String, anywheresoftware.b4a.objects.ViewWrapper<?>> views, int width, int height, float scale) {
views.get("main_tabhost1").setWidth((int)((100d / 100 * width)));
views.get("main_tabhost1").setHeight((int)((90d / 100 * height)));
views.get("read").setHeight((int)((8d / 100 * height)));
views.get("connected_label").setHeight((int)((8d / 100 * height)));
views.get("write").setHeight((int)((8d / 100 * height)));
views.get("read").setTop((int)((100d / 100 * height)-(views.get("write").getHeight())));
views.get("connected_label").setTop((int)((100d / 100 * height)-(views.get("write").getHeight())));
views.get("write").setTop((int)((100d / 100 * height)-(views.get("write").getHeight())));
views.get("read").setLeft((int)((50d / 100 * width)-(views.get("read").getWidth())-(views.get("connected_label").getWidth())/2d-(5d / 100 * width)));
views.get("write").setLeft((int)((50d / 100 * width)+(views.get("connected_label").getWidth())/2d+(5d / 100 * width)));
views.get("connected_label").setLeft((int)((50d / 100 * width)-(views.get("connected_label").getWidth())/2d));

}
}